const mongoose = require('mongoose');
var mongoosepaginate = require('mongoose-paginate');
var NewsSchema = new mongoose.Schema({
    title: String,
    desc: String,
    cateId: mongoose.Schema.ObjectId,
    date: String,
    commitNumber: Number,
    // date: date
});
NewsSchema.plugin(mongoosepaginate);
module.exports = mongoose.model('News', NewsSchema);